﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_TemplateSelect.aspx.cs"
    Inherits="V5_EShop.Admin.Admin_TemplateSelect" MasterPageFile="~/Admin/admin.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    模板管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Nav" runat="server">
    <a href="Admin_TemplateSelect.aspx">管理模板</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Content" runat="server">
    <table cellpadding="5" cellspacing="1" class="tablelist">
        <tr>
            <td>
                <asp:DataList ID="dlList" runat="server" RepeatDirection="Horizontal" RepeatColumns="6"
                    OnItemDataBound="dlList_ItemDataBound">
                    <ItemTemplate>
                        <table cellpadding="0" cellspacing="0" style="width: 120px; height: 140px; margin: 5px;">
                            <tr>
                                <td>
                                    <img width="100" height="120" alt='<%# DataBinder.Eval(Container.DataItem,"Name")%>'
                                        src='../_Template/<%#DataBinder.Eval(Container.DataItem,"TemplateDir")%>/<%#DataBinder.Eval(Container.DataItem,"Image")%>' />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:RadioButton ID="rbtnSelect" runat="server" /><asp:Label ID="lblName" runat="server"
                                        Text='<%# DataBinder.Eval(Container.DataItem,"Name")%>' ToolTip='<%# DataBinder.Eval(Container.DataItem,"TemplateDir")%>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
    <div style="width: 96%; text-align: center; margin: 0 2%; height: 40px; line-height: 40px;">
        <asp:Button ID="btnSetTemplateShow" runat="server" Text="设置为默认模板" OnClick="btnSetTemplateShow_Click" />
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
